import Vue from 'vue'
import Vuex, {
	createLogger
} from 'vuex'
import my_cart from './modules/cart.js'
import my_user from './modules/user.js'

Vue.use(Vuex)

const store = new Vuex.Store({
	modules: {
		my_cart,
		my_user
	},
	plugins: process.env.NODE_ENV !== 'production' ? [createLogger()] : []
})

export default store
